find_package(MagnumBindings REQUIRED Python)

pybind11_add_module(habitat_sim_bindings
  bindings.cpp
  geoBindings.cpp
  GfxBindings.cpp
  OpaqueTypes.h
  SceneBindings.cpp
  SensorBindings.cpp
  ShortestPathBindings.cpp
  SimBindings.cpp
)
target_link_libraries(habitat_sim_bindings
  PRIVATE
    MagnumBindings::Python
  PUBLIC
    agent
    assets
    scene
    core
    gfx
    nav
    sensor
    physics
    sim
)

# target_include_directories(environment
#   PUBLIC
#     ${CMAKE_CURRENT_LIST_DIR}
# )

# file(WRITE ${PYTHON_ROOT}/libpath.py "LIB_PATH='${CMAKE_CURRENT_BINARY_DIR}'\n")
